﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using T.Common.Domain.Common;

namespace RedDragon.Common.Domain.Purchase
{
    /// <summary>
    /// 订单行
    /// </summary>
    public class OrderBanks : BaseEntity
    {
        /// <summary>
        /// 行号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]//IsPrimaryKey 主键 IsIdentity 自增
        public int OrderBankId { get; set; }
        /// <summary>
        /// 物料管理ID(外键)
        /// </summary>
        public int MaterialId { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        public decimal Unitprice { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public int Quantity { get; set; }

        /// <summary>
        /// 单位(外键)
        /// </summary>
        public int UnitId { get; set; }

        /// <summary>
        /// 行金额 
        /// </summary>
        public decimal BankAmount { get; set; }

        /// <summary>
        /// 行摘要
        /// </summary>
        [SugarColumn(ColumnDataType = "NVarchar(100)")]//设置长度
        public string Abstract { get; set; }

        /// <summary>
        /// 订单编码(外键 采购/委外)
        /// </summary>
        [SugarColumn(ColumnDataType = "NVarchar(200)")]//设置长度
        public string PurchaseNumber { get; set; }
    }
}
